Optimal. Leaf size=28 \[ \frac{(a+b) \log (\sin (e+f x))}{f}-\frac{b \log (\cos (e+f x))}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0467835, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {4138, 446, 72} \[ \frac{(a+b) \log (\sin (e+f x))}{f}-\frac{b \log (\cos (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4138
Rule 446
Rule 72
Rubi steps
\begin{align*} \int \cot (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{b+a x^2}{x \left (1-x^2\right )} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{b+a x}{(1-x) x} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=-\frac{\operatorname{Subst}\left (\int \left (\frac{-a-b}{-1+x}+\frac{b}{x}\right ) \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=-\frac{b \log (\cos (e+f x))}{f}+\frac{(a+b) \log (\sin (e+f x))}{f}\\ \end{align*}
Mathematica [A] time = 0.0305384, size = 44, normalized size = 1.57 \[ \frac{a (\log (\tan (e+f x))+\log (\cos (e+f x)))}{f}-\frac{b (\log (\cos (e+f x))-\log (\sin (e+f x)))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 26, normalized size = 0.9 \begin{align*}{\frac{b\ln \left ( \tan \left ( fx+e \right ) \right ) }{f}}+{\frac{a\ln \left ( \sin \left ( fx+e \right ) \right ) }{f}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.02044, size = 45, normalized size = 1.61 \begin{align*} -\frac{b \log \left (\sin \left (f x + e\right )^{2} - 1\right ) -{\left (a + b\right )} \log \left (\sin \left (f x + e\right )^{2}\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.525149, size = 99, normalized size = 3.54 \begin{align*} -\frac{b \log \left (\cos \left (f x + e\right )^{2}\right ) -{\left (a + b\right )} \log \left (-\frac{1}{4} \, \cos \left (f x + e\right )^{2} + \frac{1}{4}\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \sec ^{2}{\left (e + f x \right )}\right ) \cot{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.45604, size = 140, normalized size = 5. \begin{align*} -\frac{a \log \left (-\frac{\cos \left (f x + e\right ) + 1}{\cos \left (f x + e\right ) - 1} - \frac{\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} + 2\right ) + b \log \left (-\frac{\cos \left (f x + e\right ) + 1}{\cos \left (f x + e\right ) - 1} - \frac{\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} - 2\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]